using UnityEngine;
using UnityEngine.SceneManagement;

public class ButtonShowTutor : MonoBehaviour
{
	public GameObject ButtonEnabled;

	public GameObject ButtonDisabled;

	public void OnClickEnable()
	{
		BCWStorage.Set(settings.keyCryptoTutorialActive, false);
		Save.SaveBool(settings.keyInfoAfterTutorial, true);
		ButtonEnabled.SetActive(true);
		ButtonDisabled.SetActive(false);
	}

	public void OnClickDisabled()
	{
		SceneManager.LoadScene("FirstLoading");
		ButtonEnabled.SetActive(false);
		ButtonDisabled.SetActive(true);
	}

	private void OnEnable()
	{
		if (!Load.LoadBool(settings.keyTutorialActive))
		{
			ButtonEnabled.SetActive(true);
			ButtonDisabled.SetActive(false);
		}
		else
		{
			ButtonEnabled.SetActive(false);
			ButtonDisabled.SetActive(true);
		}
	}
}
